import type { RouteRecordRaw } from 'vue-router'

const member: RouteRecordRaw = {
  name: 'member',
  path: '/member',
  meta: {
    title: '用户管理',
    icon: 'icon-park-outline:jewelry',
  },
  redirect: '/member/userList',
  children: [
    {
      name: 'member:userList',
      path: '/member/userList',
      meta: {
        title: '用户列表',
        icon: 'mingcute:dashboard-line',
      },
      component: () => import('~/base/views/member/userList/index.vue'),
    },
    {
      name: 'member:grade',
      path: '/member/grade',
      meta: {
        title: '用户等级',
        icon: 'mingcute:dashboard-line',
      },
      component: () => import('~/base/views/member/grade/index.vue'),
    },
    {
      name: 'member:quota',
      path: '/member/quota',
      meta: {
        title: '商品限购',
        icon: 'mingcute:dashboard-line',
      },
      component: () => import('~/base/views/member/quota/index.vue'),
    }, {
      name: 'member:prce',
      path: '/member/prce',
      meta: {
        title: '商品密价',
        icon: 'mingcute:dashboard-line',
      },
      component: () => import('~/base/views/member/prce/index.vue'),
    },
  ],
}

export default member
